package com.jgp.sys.query.jpa;

import com.jgp.common.persistence.Model;
import com.jgp.sys.query.power.DataPowerConfig;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019-11-10
 */
public interface DataFilter {
    
    Predicate doPredicate(Root<? extends Model> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder, DataPowerConfig powerConfig);
    
}
